# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=gtksourceviewmm4
# Preview release for 4.0.0
pkgver=3.91.1
pkgrel=2
arch="all"
pkgdesc="C++ wrapper for the gtksourceview widget library"
url="https://gitlab.gnome.org/GNOME/gtksourceviewmm"
license="LGPL-2.1-or-later"
makedepends="autoconf automake libtool mm-common gtksourceview4-dev"
subpackages="$pkgname-devhelp $pkgname-doc $pkgname-dev"
source="https://download.gnome.org/sources/gtksourceviewmm/${pkgver%.*}/gtksourceviewmm-$pkgver.tar.xz"
builddir="$srcdir/${pkgname:0:-1}-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f28f5611ce21bf4bbe15008604a3963bab46a5a631aef1cb99197e7b397950dde0c6875948f433e9f27f279b669366b27623786ae07178391e3fa2b90665823e  gtksourceviewmm-3.91.1.tar.xz
"
